ArangoDB是一个有趣的新型多模型数据库,它融合了三种流行的数据模型:文档,图形和键值存储。一些其他功能,如数据库端脚本终端也非常有趣的。试一试!让我们启动设置,并在Docker上的DigitalOcean上部署一个现成的ArangoDB设置。

图片描述

阅读这篇文章的媒介预测是2分钟。您也可以在这段时间内设置ArangoDB!其实你只需要点击大约5次,然后执行3个命令。

Create DigitalOcean Droplet with Docker

Register/Log-in to DigitalOcean and create a new droplet with docker preinstalled:

“Create Droplet” -> “One-click Apps” -> “Docker 17.03.0-ce on 16.04“
The versions might differ.

Choose your preferred settings (size, region etc.) and add an SSH key to access the droplet afterwards.

Install & start ArangoDB

Just connect to your droplet (use your droplets IP and the SSH key)..

ssh -i /path/to/your/ssh-key root@12.345.67.89

.. and execute one single command (choose your custom password instead of ha2WF4qdHc):

docker run -e ARANGO_ROOT_PASSWORD=ha2WF4qdHc -p 8529:8529 -d arangodb/arangodb

The command does certain things

  • It downloads the newest ArangoDB docker image (because it is not yet
    available on the droplet).

  • It installs the ArangeDB docker image,
    creates a root user with the given password and starts the container.

  • It makes sure that the ArangoDB port 8529 is accessible from outside
    the docker container.

Open it for the world

Now, wo just have to open the port of the droplet to access the database from the “open” internet:

ufw allow 8529

Ready to create great apps with ArangoDB!

The database endpoint is ready for queries!

You can create databases, users, permissions and many more from the built-in ArangoDB interface. Just use the IP of your droplet and the default ArangoDB-Port 8529.

http://12.345.67.89:8529/

Have fun!
Find ArangoDB on Github

原文链接: https://medium.com/ninjaconce...


GermanWifi
35 声望58 粉丝

身在德国的开源数据库女纸~